package com.wanbangee.marksystem.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.MClassDao;
import com.wanbangee.marksystem.dao.MExamDao;
import com.wanbangee.marksystem.entities.MClass;
import com.wanbangee.marksystem.entities.MExam;
import com.wanbangee.marksystem.service.StatisticsScoreReportService;

@Service
public class StatisticsScoreReportServiceImp implements StatisticsScoreReportService {
	@Autowired
	public MClassDao mClassDao;
	
	@Autowired
	public MExamDao mExamDao;
    //根据考试id查询，考试的班级信息
	@Override
	public List<MClass> selectClass(Integer examId) {
		return this.mClassDao.selectClass(examId);
	}

	//根据学校id查看登录所在的考试id和考试名称
	@Override
	public List<MExam> selectMExamInfoBySchId(Integer schId) {
		return this.mExamDao.selectMExamBySchId(schId);
	}

}
